projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
592a0d4
)
inspector: Set statistics button sensitivity
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 8 Nov 2014 14:57:48 +0000
(09:57 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 8 Nov 2014 14:57:48 +0000
(09:57 -0500)
After moving the button the header, it is now visible when
statistics are not available. Disable it in this case.
gtk/inspector/statistics.c
patch
|
blob
|
history
diff --git
a/gtk/inspector/statistics.c
b/gtk/inspector/statistics.c
index de13e943de238f54f3fff910ddb7acad4fa35cb3..34eb3fe22097b170a266afcd7ce2d72befce973b 100644
(file)
--- a/
gtk/inspector/statistics.c
+++ b/
gtk/inspector/statistics.c
@@
-364,7
+364,10
@@
constructed (GObject *object)
if (has_instance_counts ())
update_type_counts (sl);
else
- gtk_stack_set_visible_child_name (GTK_STACK (sl->priv->stack), "excuse");
+ {
+ gtk_stack_set_visible_child_name (GTK_STACK (sl->priv->stack), "excuse");
+ gtk_widget_set_sensitive (sl->priv->button, FALSE);
+ }
}
static void